package ace.module.mail.address.api.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import jakarta.validation.constraints.*;
import jakarta.annotation.Nullable;
import java.io.Serializable;

/**
* 邮寄地址应用 data transform object.
*
* @author Caspar
*/
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = MadApplicationDto.TABLE_DESC)
public class MadApplicationDto implements Serializable {

  public static final String TABLE_NAME = "mad_application";
  public static final String TABLE_DESC = "邮寄地址应用";
  public static final String ID_COLUMN_NAME = "id";
  public static final String ID_TITLE = "id";
  public static final String ID_DESC = "";
  public static final String KEY_COLUMN_NAME = "key";
  public static final String KEY_TITLE = "应用key";
  public static final String KEY_DESC = "";
  public static final String OUT_TYPE_COLUMN_NAME = "out_type";
  public static final String OUT_TYPE_TITLE = "外部业务类型";
  public static final String OUT_TYPE_DESC = "";
  public static final String OUT_ID_COLUMN_NAME = "out_id";
  public static final String OUT_ID_TITLE = "外部业务id";
  public static final String OUT_ID_DESC = "";
  public static final String NAME_COLUMN_NAME = "name";
  public static final String NAME_TITLE = "名称";
  public static final String NAME_DESC = "";
  public static final String REMARK_COLUMN_NAME = "remark";
  public static final String REMARK_TITLE = "备注";
  public static final String REMARK_DESC = "";
  public static final String STATUS_COLUMN_NAME = "status";
  public static final String STATUS_TITLE = "状态";
  public static final String STATUS_DESC = " 1-正常 2-锁定";
  public static final String DELETE_FLAG_COLUMN_NAME = "delete_flag";
  public static final String DELETE_FLAG_TITLE = "删除标识";
  public static final String DELETE_FLAG_DESC = "0-未删除";
  public static final String CREATE_TIME_COLUMN_NAME = "create_time";
  public static final String CREATE_TIME_TITLE = "创建时间";
  public static final String CREATE_TIME_DESC = "单位-毫秒";
  public static final String UPDATE_TIME_COLUMN_NAME = "update_time";
  public static final String UPDATE_TIME_TITLE = "更新时间";
  public static final String UPDATE_TIME_DESC = "单位-毫秒";
  public static final String ROW_VERSION_COLUMN_NAME = "row_version";
  public static final String ROW_VERSION_TITLE = "版本号和乐观锁";
  public static final String ROW_VERSION_DESC = "";

  @Schema(title = ID_TITLE, description = ID_DESC)
  private Long id;

  @Size(max = 255)
  @Schema(title = KEY_TITLE, description = KEY_DESC)
  private String key;

  @Size(max = 255)
  @Schema(title = OUT_TYPE_TITLE, description = OUT_TYPE_DESC)
  private String outType;

  @Size(max = 255)
  @Schema(title = OUT_ID_TITLE, description = OUT_ID_DESC)
  private String outId;

  @Size(max = 255)
  @Schema(title = NAME_TITLE, description = NAME_DESC)
  private String name;

  @Size(max = 255)
  @Schema(title = REMARK_TITLE, description = REMARK_DESC)
  private String remark;

  @Schema(title = STATUS_TITLE, description = STATUS_DESC)
  private Integer status;

  @Schema(title = DELETE_FLAG_TITLE, description = DELETE_FLAG_DESC)
  private Long deleteFlag;

  @Schema(title = CREATE_TIME_TITLE, description = CREATE_TIME_DESC)
  private Long createTime;

  @Schema(title = UPDATE_TIME_TITLE, description = UPDATE_TIME_DESC)
  private Long updateTime;

  @Schema(title = ROW_VERSION_TITLE, description = ROW_VERSION_DESC)
  private Long rowVersion;

}